projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
113e5df
)
mmc: Remove unused variable backup from mmc_send_cmd()
author
Oleksandr Tyshchenko
<
[email protected]
>
Tue, 6 Aug 2013 10:50:10 +0000
(13:50 +0300)
committer
Pantelis Antoniou
<
[email protected]
>
Tue, 17 Sep 2013 17:03:44 +0000
(20:03 +0300)
Do not call a memset for unused variable backup every time.
Remove unused variable from function.
Signed-off-by: Oleksandr Tyshchenko <
[email protected]
>
Acked-by: Pantelis Antoniou <
[email protected]
>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index 55026759ede4d41cbb26e2096a965e87e9b812b6..0b552f5850de0ff9b5404dee9fae606ebe1ebd1e 100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-55,11
+55,8
@@
int board_mmc_getcd(struct mmc *mmc)__attribute__((weak,
static int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
struct mmc_data *data)
{
- struct mmc_data backup;
int ret;
- memset(&backup, 0, sizeof(backup));
-
#ifdef CONFIG_MMC_TRACE
int i;
u8 *ptr;